import os

def copy_directory_structure(src, dst):
    """
    复制目录结构，不复制文件内容
    :param src: 源目录路径
    :param dst: 目标目录路径
    """
    for dirpath, dirnames, filenames in os.walk(src):
        relative_path = os.path.relpath(dirpath, src)
        new_dir = os.path.join(dst, relative_path)
        if not os.path.exists(new_dir):
            os.makedirs(new_dir)

if __name__ == "__main__":
    source_directory = r"D:\ProgramFile2_OR\gitingest"  # 替换为实际的源目录路径
    target_directory = r"D:\ProgramFile2_OR\实习和简历\gitingest"  # 替换为实际的目标目录路径
    copy_directory_structure(source_directory, target_directory)